package com.cloudfun.campusshare.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/6/7 15:16
 **/
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "bind_log")
@Accessors(chain = true)
public class BindLog extends CreatorPersistenceEntity{
    @Id
    @GenericGenerator(name = "uuid2", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "uuid2")
    private String serialId;

    @Column(name = "imei")
    private String imei;

    @Column(name = "device_type")
    private String deviceType;

    @Column(name = "platform")
    private String platform;

    @Column(name = "bind_type")
    private boolean bindType;

}
